package com.ms.p2p.service.impl;


import com.ms.p2p.dao.PayMethodDao;
import com.ms.p2p.entity.system.PayMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 支付方式
 */
@Service
public class PayMethodServiceImpl{

	@Autowired
	PayMethodDao payMethodDao;


	public int insert(PayMethod map) {
		return payMethodDao.insert(map);
	}

	public int update(PayMethod map) {
		return payMethodDao.update(map);
	}

	public PayMethod findById(String id) {
		return  payMethodDao.get(id);
	}

	public List<PayMethod> find(Integer i) {
		return payMethodDao.findByStatus(i);
	}

	public List<PayMethod> findOnline() {
		return payMethodDao.findOnline();
	}
}
